<template>
  <router-view/>
</template>
<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'App',
  created () {
    this.$q.iconMapFn = (iconName) => {
      if (iconName.startsWith('icon')) {
        const name = iconName.substring(4)
        return {
          cls: `iconfont icon${name}`
        }
      }
    }
  },
  async mounted () {
    await this.$store.dispatch('initUserInfo')
  }
})
</script>

<style lang="scss">

</style>
